package com.itheima.d5_interface;

public class Demo {
    public static void main(String[] args) {
        // 目标：接口的定义和使用
        //接口是抽象的不能直接创建对象
        show(new SuperStar());
        //父类调用子类对象
        Sing s1 = new SuperStar();
    }
    public static void  show(Sing sing){
        if(sing instanceof SuperStar){
            SuperStar superStar = (SuperStar) sing;
            superStar.singSong();
            superStar.singSong1();
            superStar.playBasketball();
        }
    }
}
